// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from "vue";
import App from "./App";
import router from "./router";
import i18n from "./i18n";
// eslint-disable-next-line no-unused-vars
import mock from "./mock";
import ElementUI from "element-ui";
import "./assets/styles/common.css";
import VueQuillEditor from "vue-quill-editor";
import "quill/dist/quill.core.css";
import "quill/dist/quill.snow.css";
import "quill/dist/quill.bubble.css";
import * as storage from "./utils/storage";
import modal from "@/components/common/modal";
import * as common from "./utils/common"
import api from '@/api'
import VueCookies from 'vue-cookies'
import store from '@/store/store'

Vue.use(modal);
Vue.use(ElementUI);
Vue.use(VueQuillEditor);
Vue.config.productionTip = false;
Vue.prototype.$storage = storage;
Vue.prototype.$common = common;
Vue.prototype.$api = api;
Vue.prototype.$user = {
    info: {
        name: null,
        role: null
    }
};
Vue.use(VueCookies)

new Vue({
    el: "#app",
    i18n,
    store,
    router,
    render: h => h(App)
}).$mount("#app");
